import 'package:flutter/cupertino.dart';

import 'lf_color.dart';

Widget empty = const SizedBox.shrink();
Widget emptyExpand = const Expanded(child: SizedBox.shrink());

extension ShadeMaskExt on Widget {
  Widget get shadeMask => ShaderMask(
      shaderCallback: (Rect bounds) {
        return LinearGradient(
          begin: const Alignment(-0.5, -0.9),
          end: const Alignment(0.5, 0.9),
          colors: [colorFF007F, colorFF007F, colorBF00FF, colorBF00FF],
        ).createShader(Offset.zero & bounds.size);
      },
      blendMode: BlendMode.srcATop,
      child: this);
}
